package com.mayikt.main.api.impl;

import com.mayikt.common.core.api.BaseApiService;
import com.mayikt.common.core.api.BaseResponse;
import com.mayikt.main.api.MainService;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangjin
 * @title: MainServiceImpl
 * @projectName mayikt-cloud
 * @description: TODO
 * @date 2022/4/10 0010 16:08
 */
@RestController
public class MainServiceImpl  extends BaseApiService implements MainService {
    @Override
    public String main() {
        return "ok";
    }

    @Override
    public BaseResponse<String> main2() {
        return setResultSuccessData("mayikt");
    }

    @Override
    public BaseResponse<String> main3(int age) {
        int j = 1 / age;
        return setResultSuccessData(j);
    }
}
